home *** CD-ROM | disk | FTP | other *** search
- PXFSTRUCTCREATE(3F) Last changed: 1-6-98
-
-
- NNAAMMEE
- PPXXFFSSTTRRUUCCTTCCRREEAATTEE - Creates an instance of the desired structure and
- returns a nonzero handle in the argument _j_h_a_n_d_l_e
-
- SSYYNNOOPPSSIISS
- IINNTTEEGGEERR _j_h_a_n_d_l_e,, _i_e_r_r_o_r
- CCHHAARRAACCTTEERR**_n _s_t_r_u_c_t_n_a_m_e
- CCAALLLL PPXXFFSSTTRRUUCCTTCCRREEAATTEE ((_s_t_r_u_c_t_n_a_m_e,, _j_h_a_n_d_l_e,, _i_e_r_r_o_r))
-
- IIMMPPLLEEMMEENNTTAATTIIOONN
- UNICOS, UNICOS/mk, and IRIX systems
-
- DDEESSCCRRIIPPTTIIOONN
- On IRIX systems, this routine is in lliibbffoorrttrraann..ssoo which is linked by
- default when compiling programs with the MIPSpro 7 Fortran 90 compiler
- or when compiling programs with the --ccrraayylliibbss option to the MIPSpro
- 7.2 F77 compiler.
-
- The PPXXFFSSTTRRUUCCTTCCRREEAATTEE() routine creates an instance of the desired
- structure and returns a nonzero handle in the argument _j_h_a_n_d_l_e. All
- further references to this instance of the structure are through this
- handle. The initial values of components within the new instance of
- the structure are undefined.
-
- When using the CF90 compiler or MIPSpro 7 Fortran 90 compiler on
- UNICOS, UNICOS/mk, or IRIX systems, all arguments must be of default
- kind unless documented otherwise. On UNICOS and UNICOS/mk, default
- kind is KKIINNDD==88 for integer, real, complex, and logical arguments; on
- IRIX, the default kind is KKIINNDD==44.
-
- The following are arguments for PPXXFFSSTTRRUUCCTTCCRREEAATTEE:
-
- _s_t_r_u_c_t_n_a_m_e
- An input character variable. _s_t_r_u_c_t_n_a_m_e specifies which
- type of structure should be created. Values for _s_t_r_u_c_t_n_a_m_e
- that are currently recognized are shown in the following
- table. _s_t_r_u_c_t_n_a_m_e must be in lowercase letters; trailing
- blanks are ignored.
-
- Values for _s_t_r_u_c_t_n_a_m_e:
-
- ---------------------------------------------------
- Structure Header file containing
- _s_t_r_u_c_t_n_a_m_e name definition
- ---------------------------------------------------
- FFLLOOCCKK _f_l_o_c_k <<ffccnnttll..hh>>
- UUTTIIMMBBUUFF _u_t_i_m_b_u_f <<uuttiimmee..hh>>
- UUTTSSNNAAMMEE _u_t_s_n_a_m_e <<ssyyss//uuttssnnaammee..hh>>
- SSTTAATT _s_t_a_t <<ssttaatt..hh>>
- TTMMSS _t_m_s <<ssyyss//ttiimmeess..hh>>
- GGRROOUUPP _g_r_o_u_p <<ggrrpp..hh>>
- PPAASSSSWWDD _p_a_s_s_w_d <<ppwwdd..hh>>
- ---------------------------------------------------
-
- _j_h_a_n_d_l_e An output integer variable. The structure handle is
- returned in _j_h_a_n_d_l_e.
-
- _i_e_r_r_o_r An output integer variable.
-
- EEXXIITT SSTTAATTUUSS
- Upon successful completion of PPXXFFSSTTRRUUCCTTCCRREEAATTEE, the argument _i_e_r_r_o_r is
- set to 0. If any of the following conditions occur, PPXXFFSSTTRRUUCCTTCCRREEAATTEE
- sets the argument to the corresponding value:
-
- EENNOONNAAMMEE Component name is not defined for this structure
-
- EENNOOHHAANNDDLLEE Instance of the structure could not be created
-
- EEXXAAMMPPLLEESS
- program test
- integer junam, ierr, ilen
- character*15 sname
- * Create STRUCTURE to be used by uname()
- call pxfstructcreate('utsname',junam,ierr)
- if (ierr.ne.0) then
- print *,'FAIL: error from pxfstructcreate = ',ierr
- endif
- * Fill STRUCTURE through uname()
- call pxfuname(junam,ierr)
- if (ierr.ne.0) then
- print *,'FAIL: error from pxfuname = ',ierr
- endif
- ilen = 0
- * Retrieve component sysname from STRUCTURE
- call pxfstrget(junam,'sysname',sname,ilen,ierr)
- print *, 'sysname=',sname
- * Free STRUCTURE
- call pxfstructfree(junam,ierr)
- if (ierr.ne.0) then
- print *,'FAIL: error from pxfstructfree = ',ierr
- endif
- end
-
- SSEEEE AALLSSOO
- _A_p_p_l_i_c_a_t_i_o_n _P_r_o_g_r_a_m_m_e_r'_s _L_i_b_r_a_r_y _R_e_f_e_r_e_n_c_e _M_a_n_u_a_l, publication SR-
- 2165, for the printed version of this man page.
-
-